package com.gidgabs.modules.api.service.impl;

import com.gidgabs.modules.api.service.TbUserIncomeService;
import com.gidgabs.modules.dao.TbUserIncomeDao;
import com.gidgabs.modules.entity.TbUserIncomeEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class TbUserIncomeServiceImpl implements TbUserIncomeService {
	@Autowired
	private TbUserIncomeDao userIncomeDao;
	
	@Override
	public TbUserIncomeEntity queryObject(Integer id){
		return userIncomeDao.queryObject(id);
	}
	
	@Override
	public List<TbUserIncomeEntity> queryList(Map<String, Object> map){
		return userIncomeDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return userIncomeDao.queryTotal(map);
	}
	
	@Override
	public void save(TbUserIncomeEntity userIncome){
		userIncomeDao.save(userIncome);
	}
	
	@Override
	public void update(TbUserIncomeEntity userIncome){
		userIncomeDao.update(userIncome);
	}
	
	@Override
	public void delete(Integer id){
		userIncomeDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		userIncomeDao.deleteBatch(ids);
	}
	
}
